
					
					<div id="right">
						<div class="blocktitle">Hỗ trợ trực tuyến</div>
						<div class="blockcontent">
							<center>
								<a href="ymsgr:sendim?luumanh407"><img class="ymsupport" src="<?php echo get_template_directory_uri()?>/images/ymonline.png" /></a><br />
								Điện thoại: 0908443333
							</center>
						</div>

						<div class="clear hspace2"></div>

						<div class="blocktitle">Cá rồng mới nhất</div>
						<div class="blockcontent">
							<img width="100%" src="<?php echo get_template_directory_uri()?>/images/pic2.jpg" />
							<div class="blocksubtitle"><h2>Cá rồng Yuki</h2></div>
							<div class="blocksubcontent">Màu sắc: Đỏ<br />Kích thước: 6x10cm</div>							
						</div>

						<div class="clear hspace2"></div>
						<div class="blocktitle">Tin tức sự kiện</div>
							
 
						<ul id="menuleft">
						<?php 
wp_reset_query();
$cat=get_category_by_slug('news');
$args = array(
		
		'showposts'=>7,

		'category__in'=>array($cat->cat_ID),
		
		'order'=>'DESC'
		);
query_posts($args);
$i=0;
 while(have_posts()){the_post();$i++?>
							<li id="newsitemindex<?php echo $i?>" class="blockitem"><a href="<?php echo get_permalink()?>"><h2><?php the_title()?></h2></a></li>
							<?php }?>
						</ul>
						
						<div style="height:20px;"></div>
						<!-- Histats.com  START  (standard)-->
<script type="text/javascript">document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E"));</script>
<a href="http://www.histats.com" target="_blank" title="traffic analysis" ><script  type="text/javascript" >
try {Histats.start(1,2567223,4,202,118,45,"00011110");
Histats.track_hits();} catch(err){};
</script></a>
<noscript><a href="http://www.histats.com" target="_blank"><img  src="http://sstatic1.histats.com/0.gif?2567223&101" alt="traffic analysis" border="0"></a></noscript>
<!-- Histats.com  END  -->


					</div>

					<div class="clear"></div>
				</div>
				<div class="clear"></div>
				<!-- end of content -->
				<div id="footer">
					© 2013 HUY THAO Arowana<br />
					Địa chỉ: 637 Đường 3/2 , F6, Q10, HCM<br />
					Điện thoại: 0908443333 <span id="email">Email: <a href="mailto:luumanh407@yahoo.com">luumanh407@yahoo.com</a></span>
					
				</div>
				<!-- end of footer -->
				<div class="clear"></div>	
				
				<div id="header">
					<div id="banner-shadow" style="height:150px;"></div>
					<div id="header-menu">
						<nav>
							<ul>
								<li class="first"><a></a></li>
								<li><a href="<?php echo home_url('/')?>">Trang Chủ</a></li>
								<li ><a href="<?php echo home_url('/about/')?>">Giới thiệu</a></li>
								<li id="services"><a href="<?php echo home_url('/services/')?>">Dịch Vụ</a></li>
								<li id="size"><a href="<?php echo home_url('/category/video/')?>">Size Cá</a></li>
								<li id="video"><a href="<?php echo home_url('/category/video/')?>">Video</a></li>
								<li id="news"><a href="<?php echo home_url('/chuong-trinh-giam-gia-dat-biet-trong-3-ngay/')?>">Khuyến mãi</a></li> 
								<li id="services"><a href="<?php echo home_url('/category/news/')?>">Tin tức</a></li>
								<li id="contact"><a href="<?php echo home_url('/contact/')?>">Liên Hệ</a></li>
								<li class="last"><a></a></li>
								
								
							</ul>
						</nav>
					</div>
					<div id="logo"></div>
					<div id="fish1"></div>
					<div id="fish2"></div>
					<div id="fish3"></div>
					<div id="fish4"></div>
				</div>
				<!-- end of header -->
			</div>
		</div>
        <!-- end of wrapper_inner -->
    </div>
    <!-- end of wrapper_outer -->

<?php wp_footer(); ?>
 <?php if(isDisable()){?>

		<div class="overlay overlay-contentpush">
			<div id="likecontent">
			Do bạn click chuột phải quá nhiều. <br />
			Nên hãy nhấn "thích" (like) hoặc "chia sẽ" (share) để xem tiếp nội dung bạn nhé! <br /> <br />
			<span class="fb-like" data-href="<?php echo 'http://'.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?>" data-layout="button" data-action="like" data-show-faces="true" data-share="false"></span>
			<span id="share_button" style='position: relative;top: 3px;cursor:pointer;z-index:14;margin-left: 0px;'>
	                                    <img src='<?php echo get_template_directory_uri()?>/images/sharebt.png' alt='share'/>								 		
	                                </span>			
			
			</div>
		</div>
		
		
		<script type='text/javascript' src='<?php echo get_template_directory_uri(); ?>/js/modernizr.custom.js?ver=3.7.1'></script>
<script type='text/javascript' src='<?php echo get_template_directory_uri(); ?>/js/classie.js?ver=3.7.1'></script>
<script type='text/javascript' src='<?php echo get_template_directory_uri(); ?>/js/demo7.js?ver=3.7.1'></script>
<script>
var isLike=0;
var isShowLike=0;
window.fbAsyncInit = function () {
      FB.init({
          appId: '715393548517082', 
          status: false,
          cookie: false, 
          xfbml: true
      });      

		FB.Event.subscribe('edge.create', function(href, widget) {
			//do script
			isLike=1;
			if(isShowLike==1){
				ga('send', 'event', 'copycontent', 'showliked');
			}
			else{
				ga('send', 'event', 'copycontent', 'liked');
			}
			location.reload();
		  }); 			
  };

  // Asynchronously
  (function (d) {
      var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
      if (d.getElementById(id)) { return; }
      js = d.createElement('script'); js.id = id; js.async = true;
      js.src = "//connect.facebook.net/en_US/all.js";
      ref.parentNode.insertBefore(js, ref);
  } (document));
  
  
$( document ).ready(function() {	




	$('#share_button').on('click', function(e){
	
	
		e.preventDefault();
		FB.ui(
		{
			method: 'feed',
			name: 'Cá rồng Yuki Huy Thảo',
			link: '<?php echo 'http://'.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?>',
			<?php 
				$imgid=get_post_thumbnail_id(get_the_ID());
	    		$imgsrc=wp_get_attachment_image_src($imgid,'thumb');
	    	?>     
			picture: '<?php echo $imgsrc[0]?>',
			caption: '<?php the_title()?>',
			description: '',
			message: ''
		}, function(response){
	        if (response === null || response==undefined) {
				ga('send', 'event', 'copycontent', 'errorshare');
				alert('Bạn hãy chia sẽ để có thể đọc bài viết này.');
			} else {
				
				isLike=1;
				ga('send', 'event', 'copycontent', 'shared');
				location.reload();
			}
	    });
	});
});
</script>
<?php }?>
</body>
</html>